// pages/announcement/announcement.js
const common = require('../../utils/common.js')
Page({
  data: {
    list: [
      {id: 1, title: '2024年农业补贴政策发布', content: '最新农业补贴政策已出台...', time: '今天 14:30', typeText: '政策', tagClass: 'tag-primary'},
      {id: 2, title: '新用户注册福利活动', content: '新用户注册即送优惠券...', time: '昨天 10:15', typeText: '活动', tagClass: 'tag-accent'}
    ]
  },
  goToDetail(e) {
    const id = e.currentTarget.dataset.id
    common.navigateTo(`/pages/announcement-detail/announcement-detail?id=${id}`)
  }
})

